<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="pageContent">
	<form method="post" action="${base}/core/userbasic/save.do" class="pageForm required-validate" onsubmit="return validateCallback(this, ${targetType}AjaxDone);">
	<!-- 来源页面，提交后刷新此页面 -->
	<input type="hidden" name="targetType" value="${targetType}">
	<input type="hidden" name="targetId" value="${targetId}">
	<c:if test="${entity.id!=null}">
	 <input type="hidden" name="id"  value="${entity.id}"/> 
	 <input type="hidden"  name="timestamp"  value="${entity.timestamp}"/> 
	 </c:if>
	  
		<div class="pageFormContent" layoutH="56">
				<p>
				<label>登录名：</label>
				<input name="loginName"  type="text" size="20"  class="required"  value="${entity.loginName}"/>
			</p>
		 
					<p>
				<label>密码：</label>
				<input name="password"  type="text" size="20"  class="required"  value="${entity.password}"/>
			</p>
			
					<p>
				<label>姓名：</label>
				<input name="name"  type="text" size="20"  class="required"  value="${entity.name}"/>
			</p>
			
			
				<p>
				<label>email：</label>
				<input name="email"  type="text" size="20"  class="required"  value="${entity.email}"/>
			</p>
			
			            <p>
 	        <label> 组织机构：</label>
 	         <input type="hidden" name="groupInfo.id" value="${entity.groupInfo.id }">
			 <input name="groupInfo.groupName" type="text" value="${entity.groupInfo.groupName}" />
			 <a class="btnLook" href="${base}/core/groupinfo/list.do?targetType=dialog"  lookupGroup="groupInfo">查找</a>
  	</p>
               <div class="divider"></div>
                
               		<label> 角色：</label>
              
          
              <c:forEach var="item" items="${allRoles}" varStatus="status">
              <input type="checkbox" name="roleId" value="${item.id }"  
                     <c:forEach var="role" items="${entity.rolesinfos}"> <c:if test="${role.id eq item.id}">checked="checked"</c:if> </c:forEach>
            />${item.rolename}
              </c:forEach>
  
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
